<template>
	<view class="">
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	import common from "../../common/common.js"
	export default{
		data() {
			return {
				url: ""
			}
		},
		onLoad(op) {
			op.url = decodeURIComponent(op.url);
			if(op.url.indexOf("http://")>=0 || op.url.indexOf("HTTP://")>=0){
				op.url = op.url.substr(7)
			}
			if(op.url.indexOf("https://")>=0 || op.url.indexOf("HTTPS://")>=0){
				op.url = op.url.substr(8)
			}
			this.url = common.host_o+op.url;
		}
	}
</script>

<style>
</style>
